package com.dt76.smallloanbackenduser.remote.lhuaw;

import com.dt76.smallloanbackenduser.hystrix.lhuaw.appHystrix;
import com.dt76.smallloanbackenduser.pojo.lhuaw.AppPushMessage;
import com.dt76.smallloanbackenduser.utils.Page;
import com.dt76.smallloanbackenduser.utils.Result;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name="smallloan-backend-service",fallback = appHystrix.class)
public interface AppPushMessagetest {
    //App推送消息 lhuawHystrix
    @RequestMapping("/lhuaw/qryAllApp")
    List<AppPushMessage> qryAllApp();
    @RequestMapping("/lhuaw/qryConditionPageAllApp")
    public Page qryConditionPageAllApp(
            @RequestParam("pageIndex") int pageIndex,
            @RequestParam("pushTitle") String pushTitle,
            @RequestParam("appPublisher") String appPublisher
    );
    //删除
    @RequestMapping("/lhuaw/delApp")
    public Result delApp(@RequestParam("appId")int appId);
//App推送消息
}
